/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core.objects;

import java.sql.Timestamp;

public abstract class AbstractComment  extends ObjectWithID {

    protected int rating;
    protected String comment;
    protected Timestamp timestamp;
    protected int commenterId;
    
    @Override
    abstract public Object[] toObjectArray();

    public AbstractComment(int id) {
        super(id);
    }
    
    public int getRating() {
        return rating;
    }

    public String getComment() {
        return comment;
    }

    public Timestamp getTimestamp() {
        return timestamp;
    }
    
    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
    
    public int getCommenterId() {
        return commenterId;
    }
    
    public void setCommenterId(int commenter) {
        this.commenterId = commenter;
    }
}
